// 首先引入Mock
const Mock = require('mockjs')

// 设置拦截ajax请求的相应时间
Mock.setup({
    timeout: '500-1500'
})

Mock.mock('/mock/mockMenuList', {
    code: 0,
    message: '获取数据成功',
    data: [],
    success: true
})
const flowList = [{
    name: '扩展进程1',
    content: [{
        tabs: '票审',
        content: [{
            id: 1,
            name: '扩展进程1'
        }, {
            id: 7,
            name: '扩展进程2'
        }, {
            id: 8,
            name: '扩展进程3'
        }, {
            id: 2,
            name: '扩展进程4'
        }, {
            id: 3,
            name: '扩展进程15'
        }, {
            id: 4,
            name: '扩展进程16'
        }, {
            id: 5,
            name: '扩展进程18'
        }, {
            id: 6,
            name: '扩展进程10'
        }]
    }, {
        tabs: '填报',
        content: [{
            id: 123,
            name: '扩展进程123'
        }]
    }, {
        tabs: '稽核',
        content: [{
            id: 123,
            name: 'sdf'
        }]
    }]
}, {
    name: '扩展进程2',
    content: [{
        tabs: '票审',
        content: [{
            id: 121,
            name: '扩展进程1'
        }, {
            id: 1237,
            name: '扩展进程2'
        }, {
            id: 658,
            name: '扩展进程3'
        }, {
            id: 2768,
            name: '扩展进程4'
        }, {
            id: 389,
            name: '扩展进程15'
        }, {
            id: 4809,
            name: '扩展进程16'
        }, {
            id: 3455,
            name: '扩展进程18'
        }, {
            id: 456,
            name: '扩展进程10'
        }]
    }, {
        tabs: '填报',
        content: [{
            id: 33674,
            name: '扩展进程123'
        }]
    }, {
        tabs: '稽核',
        content: [{
            id: 879,
            name: 'sdf'
        }]
    }]
}, {
    name: '扩展进程3',
    content: [{
        tabs: '票审',
        content: [{
            id: 364,
            name: '扩展进程1'
        }, {
            id: 4578,
            name: '扩展进程2'
        }, {
            id: 456457,
            name: '扩展进程3'
        }, {
            id: 452,
            name: '扩展进程4'
        }, {
            id: 3546,
            name: '扩展进程15'
        }, {
            id: 4798,
            name: '扩展进程16'
        }, {
            id: 9635,
            name: '扩展进程18'
        }, {
            id: 5466,
            name: '扩展进程10'
        }]
    }, {
        tabs: '填报',
        content: [{
            id: 7862,
            name: '扩展进程123'
        }]
    }, {
        tabs: '稽核',
        content: [{
            id: 56782,
            name: 'sdf'
        }]
    }]
}]
Mock.mock('/mock/flowList', {
    code: 0,
    message: '获取数据成功',
    data: flowList,
    success: true
})
